package com.hycreate.platform.modules.unitpoint;

import org.hibernate.validator.constraints.Length;

import com.hycreate.platform.common.persistence.DataEntity;

/**
 * 积分Entity
 * @author wang
 * @version 2017-11-29
 */
public class YhcgUnit extends DataEntity<YhcgUnit> {
	
	private static final long serialVersionUID = 1L;
	private String unitid;		// 单位id
	private String unitpoint;		// 单位积分
	
	public YhcgUnit() {
		super();
	}

	public YhcgUnit(String id){
		super(id);
	}

	@Length(min=0, max=36, message="单位id长度必须介于 0 和 36 之间")
	public String getUnitid() {
		return unitid;
	}

	public void setUnitid(String unitid) {
		this.unitid = unitid;
	}
	
	@Length(min=0, max=255, message="单位积分长度必须介于 0 和 255 之间")
	public String getUnitpoint() {
		return unitpoint;
	}

	public void setUnitpoint(String unitpoint) {
		this.unitpoint = unitpoint;
	}
	
}